import java.util.*;

/**
 * @author LKQ
 * @date 2022/3/15 9:43
 * @description
 */
public class Solution {
    public static void main(String[] args) {

    }
    public int[] runningSum(int[] nums) {
        int n = nums.length, sum = 0;
        int[] ans = new int[n];
        for (int i = 0; i < n; i++) {
            sum += nums[i];
            ans[i] = sum;
        }
        return ans;
    }
}
